package backup;
//package cs6238.ca;
//
//import java.security.Security;
//import java.security.cert.X509Certificate;
//
//public class CAMain {
//	
//	public static void main(String[] args) throws Exception{
////		Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
////		
////		if(args.length == 3 && args[0].equals("createCA")){
////			String outputFilePath = args[1];
////			String password = args[2];
////			X509Certificate cert = CertificateHelper.generateCertificateAuthorityCert();
////			CertificateHelper.createTrustStore(cert, outputFilePath, password);
////			return;
////		}
////		if(args.length == 4 && args[0].equals("createCert")){
////			String hostname = args[1];
////			String outputFilepath = args[2];
////			String password = args[3];
////			CertificateHelper.generateSignedClientCertificateAndKeyStore(hostname, outputFilepath, password);
////			return;
////		}
////		
////		displayHelp();
//	}
//	
//	private static void displayHelp(){
//		System.out.println("Valid Commands:");
//		System.out.println("\tcreateCA");
//		System.out.println("\tcreateCert <hostname> <outputFilePath> <password> ");
//	}
//}
